package com.dt.dubai.mall.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 商品品牌信息表
 */

@Data
@Table(name = "dt_mall_commodity_brand")
@EqualsAndHashCode(callSuper = false)
public class MallCommodityBrandEntity extends BaseEntity {

    //类型 1-电商,2-检测,3-计量
    Short commodityType;

    //品牌名称
    @NotNull(message = "brandName参数不能为空")
    @Length(min = 0, max = 100, message = "brandName参数最大长度不100")
    String brandName;

    //品牌故事
    @Length(min = 0, max = 200, message = "brandStory参数最大长度不200")
    String brandStory;

    //品牌logo
    @Length(min = 0, max = 60, message = "brandLogoUrl参数最大长度不60")
    String brandLogoUrl;

    //类型 1-区域品牌,2-产地品牌
    Integer brandType;

    //产地
    @Length(min = 0, max = 100, message = "brandProducingArea参数最大长度不100")
    String brandProducingArea;

    //序号
    Integer brandOrder;


}
